/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cs4280.bean;

/**
 *
 * @author PangPei
 */
public class Seating {
    int col;
    int row;
    int id;
    int status; //0 available 1 not available 2 reserve
    String color;

    public int getCol() {
        return col;
    }

    public void setCol(int col) {
        this.col = col;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getRow() {
        return row;
    }

    public void setRow(int row) {
        this.row = row;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
        this.color=switchColor(status);
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    private String switchColor(int i) {
        String color="";
        switch (i) {
            case 0: color="#aaaaaa";break;
            case 1: color="#a65f00";break;
            default: color="#3c3c3c";break;
        }

        return color;
    }

}
